package com.qf.air.controller;

import com.qf.air.service.ChartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * @author ASUS
 * @version V1.0
 * @Project air
 * @Package com.qf.air.controller
 * @Date 2021/11/5 19:14
 */
@RestController
//@CrossOrigin(allowCredentials = "true")
public class ChartController {

    @Autowired
    private ChartService chartService;

    @GetMapping("/air/districtCount")
    public List<Map> districtCount() throws IOException {
        return chartService.districtCount();
    }
}
